<template>
  <div class="card content-box">
    <span class="text">
      政企交付看板：
      <a @click="openNewWindow" style="cursor: pointer">点击跳转</a> 🍒🍉🍊
    </span>
  </div>
</template>

<script setup lang="ts" name="customers">
import { onMounted } from "vue";
import { useUserStore } from "@/stores/modules/user";
import { encrypt } from "@/utils/common";

const UserStore = useUserStore();
function openNewWindow() {
  const staffName = UserStore.staffName;
  const staffCode = UserStore.staffCode;
  const params = "staffCode=" + encrypt(staffCode) + "&staffName=" + encrypt(staffName);
  window.open("http://10.154.109.31:8848?" + params, "_blank");
}
onMounted(() => {
  openNewWindow();
});
</script>
